from_list

pure static function from_list(list: list<integer>): byte_array

Create a byte_array from a list of integers.

The inverse of byte_array.to_list().

All integers in the passed list are treated as single-byte values, i.e. they must be in the range 0 <= x < 256, and therefore the returned byte_array will be equal in size to the passed list.

Since

0.9.0

Parameters

list

the list of integers

Throws

exception

if any element in the list is less than zero or greater than 255